package com.rms.server.Domain;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.apache.ibatis.type.Alias;

@Alias("dishIngredientAssociation")
@Getter
@Setter
@Schema(name = "DishIngredientAssociation", description = "菜品与原材料的关联信息实体")
public class DishIngredientAssociation {

    @Schema(description = "关联表的唯一标识符")
    private Long associationId;

    @Schema(description = "关联的菜品ID")
    private Long dishId;

    @Schema(description = "关联的原材料ID")
    private Long ingredientId;

    @Schema(description = "制作该菜品时使用的原材料数量")
    private Double quantityUsed;
}